<template>
    <van-nav-bar
    
        title=""
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
      />
</template>

<script>
import { 
    NavBar
    ,Button
    ,DropdownMenu
    , DropdownItem
    ,Icon  } from 'vant';
export default {
    name: 'footerBtn',
    components: {
        [NavBar.name]:NavBar,
        [Icon.name]:Icon,
        [Button.name]:Button,
        [DropdownMenu.name]:DropdownMenu,
        [DropdownItem.name]:DropdownItem,
    },
    data () {
        return {
          isActive:false,
          isActive1:false,
          value: 0,
          option: [
            { text: '系统功能', value: 0 },
            { text: '委托单位信息注册', value: 1 },
            { text: '商品信息', value: 2 },
            { text: '标准信息注册', value: 3 },
            { text: '样品采集', value: 4 }
          ],
        }
    },
    created(){
      if(this.$route.path == '/center'){
        this.isActive = true
      }else{
        this.isActive = false
      }
      if(this.$route.path == '/'){
        this.isActive1 = true
      }else{
        this.isActive1 = false
      }
    },
    methods:{
      onClickLeft(){
         this.$router.go('-1')
      },
    }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
.van-nav-bar__text{
  color: #07c160;
}
.van-nav-bar .van-icon {
  color: #07c160;
}
</style>
